const http = require('http');
const server = new http.Server();
server.on('request', (req, res) => {
  res.end('hello world');
});
server.listen(3000, () => {
  console.log('server is running at http://127.0.0.1:3000/');
});